package com.ktjy.mapper;

import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {

    //查询供货商全部信息
    List<Supplier> selectList();

    List<Supplier> selectPageList(@Param("supCode") String supCode,
                                  @Param("supName") String supName,
                                  @Param("pageNO") Integer pageNO,
                                  @Param("pageSeiz") Integer pageSeiz);

    int count(@Param("supCode") String supCode,
              @Param("supName") String supName);

    Supplier selectById(Integer id);

    int insert(Supplier supplier);

    int update(Supplier supplier);

    int delete(Integer id);
}
